home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 March / macformat-088.iso / Shareware Plus / Graphics / PanoTools2.0b1 / Project Models / 2 CC Fisheye PSD next >
Encoding:
Text File  |  2000-01-21  |  5.9 KB  |  125 lines  |  [TEXT/R*ch]

  1. ###############  Example Optimizer Script  #########
  2. #
  3. #
  4. # Only lines starting with 'p', 'v', 'i', and 'm' are read. 
  5. # The script must contain:
  6. # one 'p'- line describing the final panorama
  7. # one 'i'-line for every input image
  8. # one 'v'- line listing the variables to be optimized
  9. # the 'm'-line is optional and allows you to specify modes for the optimization.
  10. #
  11. #
  12. # Script syntax:
  13. # ==============
  14. #
  15. # 'p'-line options
  16. # ----------------
  17. # w1000        specify width in pixels 
  18. # h600         specify height in pixels (default: width/2)
  19. # f0             specify  projection format, 0-rectilinear (for printing and viewing)
  20. #                               1-Cylindrical (for Printing and QTVR)
  21. #                               2- Equirectangular ( for Spherical panos) , default 
  22. #v360          specify horizontal field of view of panorama (default 360)
  23. #nPICT         specify Panorama file format, one of:
  24. #                               PICT                       pict-file on macs, bmp-file on win (default)
  25. #                               PSD_mask                   Photoshop file, one image per layer
  26. #                                                                    + masks for stitching
  27. #                               PSD_nomask                 Photoshop file, one image per layer, 
  28. #                                                          no stitching masks
  29. #                               PAN                        SmoothMove movie. Use only with f2.
  30. #                               IVR                        LivePicture IVR movie
  31. #                                                          cylindrical (format f1) or spherical (format f2)
  32. #                               IVR_java                   LivePicture Java Panorama, 
  33. #                                                          cylindrical (format f1) or spherical (format f2)
  34. #                               VRML                       VRML background node, use only with f2
  35. #                               QTVR                       Apple QTVR-panomovie. Use only with f1 
  36. #                               JPEG                       Panoramic image, jpeg format 
  37. #
  38. #n"QTVR w400 h300 c1"  specify additional viewer options in a quoted string together with format
  39. #             the following options are recognized
  40. #              w(width) and h(height) of viewer window (only QTVR on Macs)
  41. #             c(codec: 0-JPEG, 1-Cinepak, 2-Sorenson) (only QTVR on Macs) 
  42. #             q(codec quality):
  43. #                         0-high,1-normal,2-low    QTVR on Macs
  44. #                        0-100(highest)           on other jpeg-formats (PAN, IVR, IVR_java, VRML)                     
  45.                    
  46. #             g  progressive jpeg (0-no, 1-yes) (PAN, IVR, IVR_java, VRML)
  47. #             p  initial pan angle ( QTVR on Macs, VRML, IVR)
  48. #             v  field of view (QTVR, VRML, IVR) 
  49. #              Many more options can be set by editing the viewer scripts
  50. #
  51. #-buf          suppress buffer commands in the stitcher script generated by PTOptimizer. This option should
  52. #              be set if you wish to edit the final panoramic image, eg for the two PSD  formats.
  53. #
  54.  
  55. p w2000 nPSD_mask -buf
  56.  
  57. #
  58. # 'i'-line options
  59. # ----------------
  60. # f0           specify  projection format, 0-rectilinear (normal lenses)
  61. #                               1-Panoramic (Scanning cameras like Noblex)
  62. #                               2- Circular fisheye
  63. #                               3- full-frame fisheye
  64. #                               4- PSphere (equirectangular)
  65. #v82           specify horizontal field of view of image (required)
  66. #y0               initial yaw angle  (required)
  67. #p43           initial pitch angle (required)
  68. #r0            initial roll angle (required)
  69. #a,b,c         initial lens correction coefficients (optional)
  70. #               (see http://www.fh-furtwangen.de/~dersch/barrel/barrel.html)
  71. #d,e            horizontal/vertical shift of optical axis (in pixel)
  72. #u10           specify width of feather for stitching. default:10
  73. #m20           ignore a frame 20 pixels wide. default: 0
  74. #mx100         crop to brightest rectangle with size 100x200;
  75. #my200         used only for circular fisheye images (f2)
  76. #s0            specify placement of seam between buffer and image:
  77. #               0-middle of overlap('blend' ,default)
  78. #               1- at edge of image ('paste').
  79. #k1            attempt colour/brightness correction when merging
  80. #               image and buffer, one of 0- no correction(default); 
  81. #               1-change image; 2-change buffer; 3-change both
  82. #               this feature does not work very well!
  83. #
  84. #               Parameters in different images can be linked using '='
  85. #               followed by the image number starting with 0.
  86. #               Example 'v=0' sets horizontal field of view as in
  87. #               image number 0. This feature works for the variables
  88. #               v,a,b,and c.
  89. #
  90.  
  91. i f2 y0   p0 r0 v185 a0 b0.2 c0
  92. i f2 y180 p0 r0 v=0 a=0 b=0 c=0
  93.  
  94.  
  95. # 'v'-line options:
  96. # -----------------
  97. # Please note: the 'v'-line must come after the the 'i'-lines.
  98. # Optimization variables are listed together with the image number
  99. # starting at 0.
  100. #
  101. #y0             Optimize yaw in image 0
  102. #p1             Optimize pitch in image 1
  103. #r2             Optimize roll in image 2
  104. #v0             Optimize field of view im image 0
  105. #a2             Optimize lens correction parameter 'a' in image 2
  106. #               b and c can be equally optimized.
  107. #
  108.  
  109. v v0 r1 p1 y1
  110.  
  111. #
  112. # 'm'-line options
  113. # ----------------
  114. # Set mode for optimization, not required
  115. #
  116. #g2.5           Set gamma value for internal computations (default 1.0)
  117. #               See <http://www.fh-furtwangen.de/~dersch/gamma/gamma.html>
  118. #i2             Set interpolator, one of 0-poly3 (default)
  119. #               1-spline16, 2-spline36, 3-sinc256
  120. #               See <http://www.fh-furtwangen.de/~dersch/interpolator/interpolator.html>
  121. #p0             Should the optimizer create a panorama when finished?
  122. #               1-yes (default); 0-no, just create the stitcher script.
  123.  
  124. #m g2.5
  125.